import React, { Component } from 'react';

export default class App extends Component {
 state = {
   value:"香蕉"
 }
 handleChange=(e) => {
   console.log(e);
   console.log(e.target.value);
 this.setState({
   value:e.target.value,
 })
  }
  render() {
    return (
      <div>
        <select name="" id="" value={this.state.value} onChange={this.handleChange}>
          <option value="西瓜">西瓜</option>
          <option value="苹果">苹果</option>
          <option value="香蕉">香蕉</option>
        </select>

      </div>
    );
  }
}

